package com.xhwl.centiotdata.action.eesd;

import com.alibaba.fastjson.JSONObject;
import com.xhwl.common.dto.cent.eesd.RechargeRecordDTO;
import com.xhwl.common.pojo.ResultJson;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author tangwei
 * @description 能耗充值缴费
 * @create 2023-05-08 15:56
 */
@RestController
public interface IEesdAction {

    @PostMapping(value = "/kede/water-electricity/recharge")
    ResultJson rechargeElectricityAndWater(@RequestPart("params") String params);

    @PostMapping("kede/electricity-cutoff/control")
    ResultJson controlElectricityMeter(@RequestPart("params") JSONObject params);

    @PostMapping(value = "/kede/electricity-pay-record/sync")
    void electricityPayRecordSync(@RequestPart("params") JSONObject params);

    @PostMapping(value = "/kede/water-pay-record/sync")
    void waterPayRecordSync(@RequestPart("params") JSONObject params);

    @PostMapping("/fengze/own-alarm/push")
    void ownAlarmPush(@RequestPart("params") JSONObject params);

}
